package com.xiaoxiang.pay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.xiaoxiang.pay.enumeration.PayStateEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (PayOrder)表实体类
 *
 * @author haha
 * @since 2022-04-02 19:46:01
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PayOrder extends Model<PayOrder> {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 付款人用户id
     */
    @SuppressWarnings("SpellCheckingInspection")
    private Long draweeUserId;

    /**
     * 收款人用户id
     */
    private Long payeeUserId;

    /**
     * 金额
     */
    private String amount;

    /**
     * 状态
     */
    private PayStateEnum state = PayStateEnum.WAIT_PAY;
}
